icon: Only draw in content allocation
authorTimm Bäder <mail@baedert.org>
Wed, 10 May 2017 19:22:21 +0000 (21:22 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
gtk/gtkicon.c

index c8c0c6ee87edbb541795844e7727f322d4b7a8d9..691f7ad030e2b03b109b928038941d66f5b0b2b6 100644 (file)
@@ -47,7 +47,7 @@ gtk_icon_snapshot (GtkWidget   *widget,
   GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
   GtkAllocation alloc;
 
-  gtk_widget_get_allocation (widget, &alloc);
+  gtk_widget_get_content_allocation (widget, &alloc);
 
   gtk_css_style_snapshot_icon (style,
                                snapshot,